import type { RouteRecordRaw } from 'vue-router';

import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'ion:settings-outline',
      order: 9997,
      title: $t('limb.title'),
    },
    name: 'Limb',
    path: '/limb',
    children: [
      {
        path: '/limb/device',
        name: 'LimbDevice',
        meta: {
          icon: 'mdi:minecraft',
          title: $t('limb.device.title'),
        },
        component: () => import('#/views/limb/device/list.vue'),
      },
      {
        path: '/limb/device-firmware',
        name: 'LimbDeviceFirmware',
        meta: {
          icon: 'mdi:account-group',
          title: $t('limb.device-firmware.title'),
        },
        component: () => import('#/views/limb/device-firmware/list.vue'),
      },
      {
        path: '/limb/device-model',
        name: 'LimbDeviceModel',
        meta: {
          icon: 'mdi:menu',
          title: $t('limb.device-model.title'),
        },
        component: () => import('#/views/limb/device-model/list.vue'),
      },
      {
        path: '/limb/device-param',
        name: 'LimbDeviceParam',
        meta: {
          icon: 'charm:organisation',
          title: $t('limb.device-param.title'),
        },
        component: () => import('#/views/limb/device-param/list.vue'),
      },
    ],
  },
];

export default routes;
